<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta name="renderer" content="webkit" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="initial-scale=1, width=device-width, maximum-scale=1, minimum-scale=1, user-scalable=no" />
    <title>最新资讯 - 这是一个创意的网站-跃飞科技</title>
    <meta name="author" content="跃飞科技开发组" />
    <meta name="keywords" content="<?php echo $meta['keywords']?:'跃飞科技'?>" />
    <meta name="description" content="<?php echo $meta['cat_desc']?:'最牛逼的thinkphp5框架开发技术，跃飞科技为你提供一站式的技术服务与分享'?>" />
    <link rel="shortcut icon" id="favicon" href="<?php echo IMG;?>/logo.ico" />
    <link rel="stylesheet" href="<?php echo CSS;?>/main.css?v=17.24" />
    <link rel="stylesheet" href="<?php echo CSS;?>/animation.css" />
    <script src="<?php echo JS;?>/baidu_tongji.js"></script>
</head>
<body class="open">

<div id="main-container">
    <div class="inner-wrap">
        <div class="sub-nav">
            <div class="news-cate">
                <a <?php if(isCurrent(url('home/news/index'))):?>class="cur" <?php endif;?> href="<?php echo url('home/news/index','',true,true);?>">全部</a>
                <?php foreach ($articleCat as $k=>$v):?>
                <a <?php if(isCurrent(url('home/news/index',['id'=>$v['cat_id']]))):?>class="cur" <?php endif;?> href="<?php echo url('home/news/index',['id'=>$v['cat_id']],true,true);?>" ><?=$v['cat_name']?></a>
                <?php endforeach;?>
            </div>

            <div class="news-cate-dropdown">
                <button>最新资讯 V</button>
                <ul>
                    <li><a href="<?php echo url('home/news/index','',true,true);?>">全部</a></li>
                    <?php foreach ($articleCat as $k=>$v):?>
                       <li> <a href="<?php echo url('home/news/index',['id'=>$v['cat_id']],true,true);?>" ><?=$v['cat_name']?></a></li>
                    <?php endforeach;?>
                </ul>
            </div>

        </div>
        <ul class="news-list clearfix">
            <?php foreach($news as $k=>$v):?>
            <li class="clearfix">
                <div class="news-img">
                    <a title="<?=$v['title'];?>" href="<?php echo url('home/news/detail',['id'=>$v['article_id']],true,true);?>" class="img">
                        <img src="<?php echo UPLOADS;?>/image/20150909/1441803350.jpg" alt="<?=$v['title']?>" />
                    </a>
                    <div class="bl">
                    </div>
                </div>
                <h2><a href="<?php echo url('home/news/detail',['id'=>$v['article_id']],true,true);?>"><?=$v['title']?></a></h2>
                <p class="info">时间：<?=formatDate($v['add_time'])?><u>•</u>点击：<?=$v['count']?>次</p>
                <p class="desc"><?=$v['description'];?></p>
                <a href="<?php echo url('home/news/detail',['id'=>$v['article_id']],true,true);?>" class="more">查看详情>></a>
                <p class="date"><?php echo date('d',$v['add_time'])?><span><?php echo date('m',$v['add_time'])?></span></p>
            </li>
            <?php endforeach;?>
        </ul>
        <div class="pages"><?=$page;?></div>
    <?php include_home_view('public'.DS.'services.php');?>
</div>
<?php include_home_view('public'.DS.'left.php');?>
</body>
</html> 